<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>jQuery UI 排序（Sortable） - 连接列表</title>
  <link rel="stylesheet" href="//apps.bdimg.com/libs/jqueryui/1.10.4/css/jquery-ui.min.css">
  <script src="//apps.bdimg.com/libs/jquery/1.10.2/jquery.min.js"></script>
  <script src="//apps.bdimg.com/libs/jqueryui/1.10.4/jquery-ui.min.js"></script>
  <link rel="stylesheet" href="jqueryui/style.css">
  <style>
  #sortable1, #sortable2 { list-style-type: none; margin: 0; padding: 0 0 2.5em; float: left; margin-right: 10px; }
  #sortable1 li, #sortable2 li { margin: 0 5px 5px 5px; padding: 5px; font-size: 1.2em; width: 120px; }
  </style>
  <script>
  $(function() {
    $( "#sortable1" ).sortable({ helper: "clone",connectWith: ".connectedSortable",});
    $( "#sortable1" ).disableSelection();

    $( "#sortable2" ).sortable({
        connectWith: ".connectedSortable",
        helper: "clone",
        cursor: "move"
    });
    $( "#sortable2" ).disableSelection();
  });
  </script>
</head>
<body>
 
<ul id="sortable1" class="connectedSortable">
  <li class="ui-state-default">Item 11</li>
  <li class="ui-state-default">Item 12</li>
  <li class="ui-state-default">Item 13</li>
  <li class="ui-state-default">Item 14</li>
  <li class="ui-state-default">Item 15</li>
</ul>
 
<ul id="sortable2" class="connectedSortable">
  <li class="ui-state-highlight">Item 21</li>
  <li class="ui-state-highlight">Item 22</li>
  <li class="ui-state-highlight">Item 23</li>
  <li class="ui-state-highlight">Item 24</li>
  <li class="ui-state-highlight">Item 25</li>
</ul>
 
 
</body>
</html>